import { axios_delete,axios_get,axios_post,axios_put } from './http.js'

let base = 'http://127.0.0.1:8000';


// 注册
export const Register = p =>{ return axios_post('reg/',p)}

// 登录
export const Login = p =>{ return axios_post('login/',p)}

// 获取所有权限
export const Types = p =>{ return axios_get('types/',p)}

// 找回密码
export const Findpassword = p =>{ return axios_post('findpassword/',p)}
// 修改密码
export const updatepassword_get = p =>{return axios_get('updatepassword/',p)}

// 获取用户
export const Register_GET = p =>{ return axios_get('reg/',p)}

// 用户审核通过 /存档
export const Register_PUT = p =>{ return axios_put('reg/',p)}


//获取公司信息
export const companyapi_GET = p =>{ return axios_get('companyapi/',p)}
//获取所有公司
export const comall_get = p =>{ return axios_get('comall/',p)}
//修改公司信息
export const companyapi_PUT = p =>{ return axios_put('companyapi/',p)}


//添加标签
export const label_post = p =>{ return axios_post('labelapi/',p)}
//获取标签
export const label_get = p =>{ return axios_get('label/',p)}
// 修改标签
export const label_put = p =>{ return axios_put('labelapi/',p)}



//添加货物
export const goods_post = p =>{ return axios_post('goods/',p)}
// 获取货物
export const goods_get = p =>{ return axios_get('goods/',p)}
// 存档
export const goods_put = p =>{ return axios_put('goods/',p)}
//获取修改货物
export const updategoods_get = p =>{ return axios_get('updategoods/',p)}
// 修改获取到的货物
export const updategoods_post = p =>{ return axios_post('updategoods/',p)}


//获取客户
export const client_get = p =>{ return axios_get('clientapi/',p)}
//添加客户
export const client_post = p =>{ return axios_post('clientapi/',p)}
//客户修改
export const client_put = p =>{ return axios_put('clientapi/',p)}


// 添加运单
export const waybill_post = p =>{ return axios_post('waybill/',p)}
// 获取运单
export const waybill_get = p =>{ return axios_get('waybillall/',p)}


// 获取运单信息
export const waybill_form_get = p =>{ return axios_get('waybill_form/',p)}

// 获取发货地址
export const get_f_address = p =>{ return axios_get('faddress/',p)}


// 查询订单
export const get_queryaddress = p =>{ return axios_post('queryaddress/',p)}
// 查询运单详情
export const get_GainAaybill = p =>{ return axios_get('gainaybill/',p)}

// 下载记录
export const post_download = p =>{ return axios_get('download/',p)}